<template>
	<div id="app">
		<el-container>
			<el-header>
				<img src="~@/assets/logo.png" class="he__logo" alt="" />
				<img src="~@/assets/scmxb.png" class="he__logotext" alt="" />
			</el-header>
			<el-container class="con" style="height: calc(100vh - 113px);">
				<el-aside>
					<div class="cz">
						<div class="cz__item" style="height: 28px;" v-for="(item,index) in czlist" :key="index">{{item}}
						</div>
					</div>
					<div class="form">
						<div class="form_item">
							<el-input placeholder="2024-03-09" suffix-icon="el-icon-date" v-model="form.value1">
								<template slot="prepend">制单日期 :</template>
							</el-input>
							-
							<el-input placeholder="2024-03-09" suffix-icon="el-icon-date" v-model="form.value1">
							</el-input>
						</div>
						<div class="bz">
							<el-input placeholder="" suffix-icon="el-icon-date" v-model="form.v">
								<template slot="prepend">生产单号 :</template>
							</el-input>
						</div>
						<div class="bz">
							<el-input placeholder="" suffix-icon="el-icon-date" v-model="form.v">
								<template slot="prepend">工序 :</template>
								
							</el-input>
							<el-input placeholder="10086" class="qian" v-model="form.value">
								
							</el-input>
						</div>
						<div class="bz">
							<el-input placeholder="" suffix-icon="el-icon-date" v-model="form.v">
								<template slot="prepend">产品 :</template>
								
							</el-input>
							<el-input placeholder="" class="qian" v-model="form.v">
								
							</el-input>
						</div>
						<div class="bz">
							<el-input placeholder="" suffix-icon="el-icon-date" v-model="form.v">
								<template slot="prepend">颜色 :</template>
								
							</el-input>
							<el-input placeholder="" class="qian" v-model="form.v">
								
							</el-input>
						</div>
						<div class="bz">
							<el-input placeholder="" suffix-icon="el-icon-date" v-model="form.v">
								<template slot="prepend">尺寸 :</template>
								
							</el-input>
							<el-input placeholder="" class="qian" v-model="form.v">
								
							</el-input>
						</div>
						<div class="bz">
							<el-input placeholder="" suffix-icon="el-icon-date" v-model="form.v">
								<template slot="prepend">完工人 :</template>
								
							</el-input>
							
						</div>
						<div class="bz">
							<el-input placeholder="" suffix-icon="el-icon-date" v-model="form.v">
								<template slot="prepend">单据号 :</template>
								
							</el-input>
							
						</div>
						<div class="footer">
							<el-checkbox label="隐藏未完成"></el-checkbox>
							<div style="display: flex;align-items: center;">
								<div class="footer_btn">
									取消
								</div>
								<div class="footer_btn btn1">
									确认
								</div>
							</div>
						</div>
					</div>
				</el-aside>
				<el-main>
					<div class="mian__top" ref="mian__top">
						<el-button v-for='(item,index) in btnlist' :key="index"
							:style="{color:item.color,background:item.bgcolor}">{{item.text}}</el-button>
					</div>
					<div class="mian__box" :style="{height:`calc(100% - 30px - ${mainTopheight}px)`}">
						<router-view></router-view>
					</div>
				</el-main>
			</el-container>
		</el-container>

	</div>
</template>
<script>
	export default {
		data() {
			return {
				czlist: ['今天', '昨天', '30天', '90天'],
				form: {
					value1: '2024-03-09',
					value:'10086',
					v:""
				},
				btnlist: [{
						text: '传出',
						bgcolor: '#dbe4fd',
						color: '#231918'
					}, {
						text: '设备',
						bgcolor: '#dbe4fd',
						color: '#231918'
					}, {
						text: '预览',
						bgcolor: '#dbe4fd',
						color: '#231918'
					}, {
						text: '页面',
						bgcolor: '#dbe4fd',
						color: '#231918'
					}, {
						text: '查询',
						bgcolor: '#dbe4fd',
						color: '#231918'
					}, {
						text: '刷新',
						bgcolor: '#dbe4fd',
						color: '#231918'
					}, {
						text: '项目',
						bgcolor: '#dbe4fd',
						color: '#231918'
					}, {
						text: '项目',
						bgcolor: '#dbe4fd',
						color: '#231918'
					}, {
						text: '打印',
						bgcolor: '#dbe4fd',
						color: '#231918'
					}, {
						text: '筛选',
						bgcolor: '#dbe4fd',
						color: '#231918'
					},
					{
						text: '关闭',
						bgcolor: '#dbe4fd',
						color: '#231918'
					}
				],
				mulist: [{
					title: '10.销售品',
					list: [{
						title: '销售品1',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品2',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品3',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}]
				}, {
					title: '20.材料(制单)',
					list: [{
						title: '销售品1',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品2',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品3',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}]
				}, {
					title: '30.材料(往来)',
					list: [{
						title: '销售品1',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品2',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品3',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}]
				}, {
					title: '40.本厂裁片',
					list: [{
						title: '销售品1',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品2',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品3',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}]
				}, {
					title: '60.其他',
					list: [{
						title: '销售品1',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品2',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}, {
						title: '销售品3',
						list: [{
							title: '织带'
						}, {
							title: '飘带'
						}, {
							title: '肩带'
						}, ]
					}]
				}],
				curindex: '',
				mainTopheight: 0
			}
		},
		mounted() {
			// let height = this.$refs.mian__top.offsetHeight; //100
			this.mainTopheight = this.$refs.mian__top.offsetHeight
			let _this = this
			window.onresize = function() {
				_this.mainTopheight = _this.$refs.mian__top.offsetHeight
				// console.log(height)
			};

		},

	}
</script>
<style scoped>
	* {
		padding: 0;
		margin: 0;
	}

	.el-header {
		background-color: #fff;
		height: 111px !important;
		display: flex;
		align-items: center;
		padding-left: 43px;

	}

	.he__logo {
		width: 64px;
		height: 53px;
		margin-right: 5px;
	}

	.he__logotext {
		width: 160px;
		height: 24px;
	}

	.el-aside {
		background-color: #fff;
		width: fit-content!important;
		padding: 0 16px 0 44px;

	}

	.el-main {
		padding: 0 !important;
		background-color: #f1f4f6;
	}

	.con {}

	.dian {
		width: 9px;
		height: 9px;
		border-radius: 50%;
		border: 3px solid #4A77F6;
		margin-right: 25px;
		justify-content: center;
		opacity: 0.39;
	}

	.el-submenu-title-1 {
		display: flex;
		align-items: center;
		font-size: 19px;
		padding-left: 20px;
	}

	.dian1 {
		width: 8px;
		height: 8px;
		background: #4E6781;
		border-radius: 4px;
		opacity: 0.5;
		margin-right: 5px;

	}

	.el-submenu .el-menu-item {
		font-size: 16px;
		padding-left: 90px !important;
	}

	.active {
		opacity: 1;
	}

	.lefttop {
		height: 61px;
		background: #4A77F6;
		display: flex;
		align-items: center;
		font-family: Alibaba PuHuiTi;
		font-weight: 400;
		font-size: 21px;
		color: #FFFFFF;


	}

	.lefttop__icon {
		width: 30px;
		height: 30px;
		margin-left: 44px;
		margin-right: 17px;
	}

	.cz {
		display: flex;
		align-items: center;


	}

	.cz__item {
		width: 25%;
		background: rgba(74, 119, 246, .5);
		font-family: Alibaba PuHuiTi;
		font-weight: 400;
		font-size: 18px;
		color: #231918;
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 0 1px 0 0;
		cursor: pointer;
		margin-bottom: 5px;
	}

	.el-button+.el-button {
		margin-left: 2px;
	}

	.mian__top {
		background-color: #fff;
		padding-bottom: 5px;
	}

	.mian__box {
		width: calc(100% - 30px);
		padding: 15px;
	}


	/* 隐藏 Chrome、Safari 和 Opera 的滚动条 */
	.el-aside::-webkit-scrollbar {
		display: none;
	}

	/* 隐藏 IE、Edge 和 Firefox 的滚动条 */
	.el-aside {
		-ms-overflow-style: none;
		/* IE and Edge */
		scrollbar-width: none;
		/* Firefox */
	}

	.form_item {
		display: flex;
		align-items: center;
		margin-top: 13px;
	}

	/deep/.el-input__inner {
		width: 135px;
		padding-left: 10px;
	}

	.el-input {
		width: fit-content;
		
	}

	/deep/.el-input-group__prepend {
		padding: 0 10px;
		width: 79px;
	}

	/deep/.el-input__icon {
		width: 20px;
	}

	/deep/.el-input--suffix .el-input__inner {
		padding-right: 20px;
	}
	
	
	/deep/.bz .el-input {
		width: 100%;
		display: flex;
	}
	/deep/.bz .el-input .el-input__inner{
		width: 100%;
	}
	/deep/.bz .el-input .el-input-group__prepend{
		flex-shrink: 0;
		/* width: 79px;  */
		display: flex;
		align-items: center;
	}
	.bz{
		display: flex;
		flex: 1;
		margin-top: 13px;
		position: relative;
	}
	.qian{
		position: absolute;
	}
	/deep/.qian {
		width: 97px!important;
		display: flex;
		left: calc(79px + 20px);
		
	}
	/deep/.qian .el-input__inner{
		width: 97px!important;
		border-radius:0!important;
	}
	.footer{
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-family: Alibaba PuHuiTi;
		font-weight: 400;
		font-size: 15px;
		color: #1E173C;
		margin-top: 22px;
	}
	.footer_btn{
		width: 60px;
		height: 31px;
		background: #ececec;
		border: 1px solid #cbcbcb;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #cbcbcb;
		cursor: pointer;
		margin-left: 22px;
		border-radius: 4px;
	}
	.btn1{
		color: #4A77F6;
		border: 1px solid #4A77F6;
		background: #dbe4fd;
	}
</style>